using System;

namespace WebApp.Models
{
    public interface IContainer
    {
        string Title { get; }
        string View { get; }
        object ViewModel { get; }
    }

    public class Container : IContainer
    {
        private readonly string _title;
        private readonly string _view;
        private readonly object _viewModel;

        public Container(string title, string view) : this(title, view, null)
        {
            
        }

        public Container(string title, string view, object viewModel)
        {
            _title = title;
            _view = view;
            _viewModel = viewModel;
        }

        #region Implementation of IContainer

        public string Title
        {
            get { return _title; }
        }

        public string View
        {
            get { return _view; }
        }

        public object ViewModel
        {
            get { return _viewModel; }
        }

        #endregion
    }
}